import { createStore } from 'vuex';
import tab from './tab';

const store = createStore({
    modules:{
        tab
    },
    state() {
        return {
            menuItems: [
                { label: '仪表盘', path: '/home' },
                { label: '系统管理', path: '/system-management' },
                { label: '用户管理', path: '/user-management' },
                { label: '内容管理', path: '/content-management' },
                { label: '数据统计', path: '/data-statistics' },
                { label: '设置', path: '/settings' }
            ]
        };
    },
    mutations: {
        addMenu(state, router) {
            // 可添加菜单动态添加逻辑
        }
    }
});

export default store;